import request from '@/axios/request'

// 5.1获取收藏房源列表
export function collection(data) {
    return request({
      url: '/zhixuan/api/v1/user/opt/collection/json',
      method: 'post',
      data
    })
  }
  // 5.2取消收藏房源
export function delCollection(data) {
  return request({
    url: "/zhixuan/api/v1/user/opt/delCollection",
    method: "post",
    data
  });
}
  // 5.3取消收藏房源
  export function addCollection(data) {
    return request({
      url: "/zhixuan/api/v1/user/opt/addCollection",
      method: "post",
      data
    });
  }